package cn.tedu.micro.demo.order.feign;

import cn.tedu.micro.demo.common.protocol.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 专门调用cart购物车的feign客户端
 * 类比mapper
 * */

@FeignClient("micro-demo-stock")
public interface StockFeignClient {
    @PostMapping("/stock/update")
    public JsonResult<Void> updateStock(@RequestParam("productCode") String productCode, @RequestParam("count") Integer count);
}
